package ro.imc.rest.shared.dto;

import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;


public class LearningObject implements IsSerializable {
	
	private String name;
	private String iconPath;
	private LearningObjectType type;
	private boolean isFolder;
	private String startDate;
	private String endDate;
	private LearningObjectStatus status;
	private String location;
	private String id;
	private List<String> metatags;
	private String description;
	private String modified;
	private String learningForm;
	private String language;
	private boolean finishable;
	private boolean bookable;
	
	public LearningObject (String name, LearningObjectType type, String startDate, String endDate) {
		this.name = name;
		this.type = type;
		this.startDate = startDate;
		this.endDate = endDate;
		this.iconPath = type.getIconImage();
		this.isFolder = type.isFolder();
	}
	
	public LearningObject (String name, LearningObjectType type, String startDate, String endDate, String id, String location, LearningObjectStatus status, String description, List<String> metatags) {
		this(name, type, startDate, endDate);
		this.id = id;
		this.location = location;
		this.status = status;
		this.metatags = metatags;
		this.description = description;
	}

	
	public LearningObject() {

		// TODO Auto-generated constructor stub
	}

	public String getName() {
	
		return name;
	}

	
	public void setName(String name) {
	
		this.name = name;
	}

	
	public String getIconPath() {
	
		return iconPath;
	}

	
	public void setIconPath(String iconPath) {
	
		this.iconPath = iconPath;
	}

	
	public LearningObjectType getType() {
	
		return type;
	}

	
	public void setType(LearningObjectType type) {
	
		this.type = type;
	}

	
	public boolean isFolder() {
	
		return isFolder;
	}

	
	public void setFolder(boolean isFolder) {
	
		this.isFolder = isFolder;
	}


	public String getStartDate() {
		return startDate;
	}


	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}


	public String getEndDate() {
		return endDate;
	}


	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}


	
	public LearningObjectStatus getStatus() {
	
		return status;
	}


	
	public void setStatus(LearningObjectStatus status) {
	
		this.status = status;
	}


	
	public String getLocation() {
	
		return location;
	}


	
	public void setLocation(String location) {
	
		this.location = location;
	}


	
	public String getId() {
	
		return id;
	}


	
	public void setId(String id) {
	
		this.id = id;
	}


	
	public List<String> getMetatags() {
	
		return metatags;
	}


	
	public void setMetatags(List<String> metatags) {
	
		this.metatags = metatags;
	}


	
	public String getDescription() {
	
		return description;
	}


	
	public void setDescription(String description) {
	
		this.description = description;
	}

	
	public String getModified() {
	
		return modified;
	}

	
	public void setModified(String modified) {
	
		this.modified = modified;
	}

	
	public String getLearningForm() {
	
		return learningForm;
	}

	
	public void setLearningForm(String learningForm) {
	
		this.learningForm = learningForm;
	}

	
	public String getLanguage() {
	
		return language;
	}

	
	public void setLanguage(String language) {
	
		this.language = language;
	}

	
	public boolean isFinishable() {
	
		return finishable;
	}

	
	public void setFinishable(boolean finishable) {
	
		this.finishable = finishable;
	}

	
	public boolean isBookable() {
	
		return bookable;
	}

	
	public void setBookable(boolean bookable) {
	
		this.bookable = bookable;
	}
}
